 ; var GetData = function (data){
 	var _this = this.GetData;

  //天气信息
 	_this.exportDataCli = function(callback) {
        $.ajax({
        type : "post",
        url : "Index/Weather/getClimateInfo",
        dataType : "json",
        data: {'city': data.city, 'pro': data.pro},
        success: function(data) {
          var _data = JSON.parse(data);
          callback(_data);
        },
        error: function(e) {
          callback(null);
        }
      })
  };
//经济信息
_this.exportDataEcon = function(callback) {
      $.ajax({
      type : "post",
      url : "Index/Earthdata/getData",
      dataType : "json",
      data: {'city': data.city, 'handel': 'econ'},
      success: function(data) {
        var _data = JSON.parse(data);
        callback(_data);
      },
      error: function() {
        callback(null);
      }
    });
}
//环境信息
_this.exportDataEnvir = function(callback) {
      $.ajax({
      type : "post",
      url : "Index/EarthData/getData",
      dataType : "json",
      data: {'city': data.city, 'handel': 'envir'},
      success: function(data) {
        var _data = JSON.parse(data);
        callback(_data);
      },
      error: function() {
        callback(null);
      }
    })
}
//人口信息
_this.exportDataPeo = function(callback) {
      $.ajax({
      type : "post",
      url : "Index/Earthdata/getData",
      dataType : "json",
      data: {'city': data.city, 'handel': 'peo'},
      success: function(data) {
        var _data = JSON.parse(data);
        callback(_data);
      },
      error: function() {
        callback(null);
      }
    })
}

//三维地图信息
_this.exportDataTd = function (callback) {
        $.ajax({
        type : "post",
        url : "Index/Earthdata/getData",
        dataType : "json",
        data: {'city': data.city,'handel': 'td'},
        success: function(data) {
          var _data = JSON.parse(data);
          callback(_data);
        },
        error: function() {
          callback(null);
        }
      })
}
_this.addFault = function (callback) {
        $.ajax({
        type : "post",
        url : "static/fault_zone_copy_copy.json",
        dataType : "json",
        success: function(data) {
          var _data = JSON.parse(data);
          callback(_data);
        },
        error: function() {
          callback(null);
        }
      })
}


//
  return this.GetData;
 }; 

/*  GetData.prototype.as = function(city) {
 	$.ajax({
 		type : "post",
 		url : "Index/Weather/getClimateInfo",
 		dataType : "json",
 		data: {'city': city},
 		success: function(data) {
 			var _data = JSON.parse(JSON.parse(data));
 		}
 	})
 }*/

//暂时没有该模块
/*  GetData.prototype.gover = function(city) {
  	var _self = this;
 	$.ajax({
 		type : "post",
 		url : "Index/Earthdata/getData",
 		dataType : "json",
 		data: {'city': city, 'handel': 'gover'},
 		success: function(data) {
 			var _data = JSON.parse(data);
 			_self.constructor.exportData.gover = _data;
 		},
 		error: function() {
 			_self.constructor.exportData.gover = null;
 		}
 	})
 }*/
//同环境信息
/*  GetData.prototype.topo = function(city) {
  	var _self = this;
 	$.ajax({
 		type : "post",
 		url : "Index/Earthdata/getData",
 		dataType : "json",
 		data: {'city': city, 'handel': 'topo'},
 		success: function(data) {
 			var _data = JSON.parse(data);
 			_self.constructor.exportData.topo = _data;
 		},
 		error: function() {
 			_self.constructor.exportData.topo = null;
 		}
 	})
 }*/
